package com.rpc.netty.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@Data
@EnableConfigurationProperties(RpcProperties.class)
@ConfigurationProperties(prefix = "rpc")
public class RpcProperties {
    private Server server;//服务端信息
    private Client client;//客户端信息

    @Data
    public static class Client {
        private String registry;
    }

    @Data
    public static class Server {
        private String address;
        private String registry;
    }

}
